package com.ruoyi.project.system.tongji.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.tongji.mapper.UserTongjiMapper;
import com.ruoyi.project.system.tongji.domain.UserTongji;
import com.ruoyi.project.system.tongji.service.IUserTongjiService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 统计列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-01
 */
@Service
public class UserTongjiServiceImpl implements IUserTongjiService 
{
    @Autowired
    private UserTongjiMapper userTongjiMapper;

    /**
     * 查询统计列表
     * 
     * @param id 统计列表主键
     * @return 统计列表
     */
    @Override
    public UserTongji selectUserTongjiById(Long id)
    {
        return userTongjiMapper.selectUserTongjiById(id);
    }

    /**
     * 查询统计列表列表
     * 
     * @param userTongji 统计列表
     * @return 统计列表
     */
    @Override
    public List<UserTongji> selectUserTongjiList(UserTongji userTongji)
    {
        return userTongjiMapper.selectUserTongjiList(userTongji);
    }

    /**
     * 新增统计列表
     * 
     * @param userTongji 统计列表
     * @return 结果
     */
    @Override
    public int insertUserTongji(UserTongji userTongji)
    {
        return userTongjiMapper.insertUserTongji(userTongji);
    }

    /**
     * 修改统计列表
     * 
     * @param userTongji 统计列表
     * @return 结果
     */
    @Override
    public int updateUserTongji(UserTongji userTongji)
    {
        return userTongjiMapper.updateUserTongji(userTongji);
    }

    /**
     * 批量删除统计列表
     * 
     * @param ids 需要删除的统计列表主键
     * @return 结果
     */
    @Override
    public int deleteUserTongjiByIds(String ids)
    {
        return userTongjiMapper.deleteUserTongjiByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除统计列表信息
     * 
     * @param id 统计列表主键
     * @return 结果
     */
    @Override
    public int deleteUserTongjiById(Long id)
    {
        return userTongjiMapper.deleteUserTongjiById(id);
    }

    @Override
    public UserTongji selectUserTongjiByIdanddate(String kefuid) {
        return userTongjiMapper.selectUserTongjiByIdanddate(kefuid);
    }
}
